package com.j2some;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.yishun.springboot.Application;
import com.yishun.springboot.service.GongWuSuUploadCWSService;
import com.yishun.springboot.service.InnerFormalGWSCWRService;


/**
 * 上传工务署实名制各项数据
 * 
 * @date 2021年5月8日下午11:55:18
 * @author XiaoHuang
 *
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class Principal_FirManualUploadGWS {

	@Autowired
	GongWuSuUploadCWSService gongWuSuUploadCWSService;
	
	@Autowired
	InnerFormalGWSCWRService innerFormalGWSCWRService;

    //上传考勤
	@Test
	public void uploadPersonnelPassageData() throws Exception {
//		String gwsProjectCode = "SZSW-009-2020"; // 可修改为你需要改成工务署项目号
//		String standardProjectName = "十五高级中学";
//		Integer yzwProjectCode = 325437; // 可修改为你需要上传的云筑网班组信息所属项目号
		
//		String gwsProjectCode = "DPYY-035-2020"; // 必填
//		Integer yzwProjectCode = 333580; //必填
//		String projectName = "大鹏医院";   //不知道可以为空
		
//		String gwsProjectCode = "562f4206-a226-468b-9c08-55161b7b3460"; // 必填
//		Integer yzwProjectCode = 339129; //必填
//		String projectName = "十三高";   //不知道可以为空
		
		//根据gws_pushdata表
		String gwsProjectCode = "DESY-016-2019"; // 必填
		Integer yzwProjectCode = 302345; //必填
		String projectName = "实验二中";   //不知道可以为空
		
		
		//上传参建单位手动填写文件给到工务署工作人员
//		log.info(gongWuSuUploadCWSService.uploadTeam(gwsProjectCode,yzwProjectCode,projectName));//上传班组
//		log.info(gongWuSuUploadCWSService.uploadPersonnelBaseInfo(gwsProjectCode,yzwProjectCode,projectName));//上传人员
		gongWuSuUploadCWSService.uploadPersonnelPassageData(true,gwsProjectCode,yzwProjectCode,projectName);//上传考勤
//		gongWuSuUploadCWSService.uploadPhotoAndStoreToProjectPersonnel(yzwProjectCode);//一整个工程进行上传
		
		
//		gongWuSuUploadCWSService.personnelLeaveProject();//人员离场
	}

}
